﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class MarryImageBLL : BaseBLL<MarryImage>
    {
        MarryImageDAO dao = new MarryImageDAO();
        public MarryImage entity = new MarryImage();
        public override MarryImage GetModel()
        {
            return entity;
        }

        public int GetMaxId()
        {
            return dao.GetMaxId();
        }
        public IList<MarryImage> GetListByPager(int productId, int page, int pagesize)
        {
            return dao.GetListByPager(productId, page, pagesize);
        }
        public int GetListByPager(int productId)
        {
            return dao.GetListByPager(productId);
        }

        public IList<MarryImage> FindModelByMarryId(int marryId, int page, int pageSize)
        {
            return dao.FindModelByMarryId(marryId,page,pageSize);
        }

        public int GetResultCountByMarryId(int marryId)
        {
            return dao.GetResultCountByMarryId(marryId);
        }
    }
}
